# configure the OpenAccount system
require File.dirname(__FILE__) + '/lib/open_account_configuration'
require File.dirname(__FILE__) + '/lib/authenticated_system'
require File.dirname(__FILE__) + '/lib/open_account_controller'
require File.dirname(__FILE__) + '/lib/open_account_model'
require File.dirname(__FILE__) + '/lib/open_account_notify'
require File.dirname(__FILE__) + '/lib/open_session_controller'

# include authenticated system in all controllers
ActionController::Base.send :include, AuthenticatedSystem


# set some default configuration values
OpenAccount::OpenAccountConfiguration.set_config :email_from, 'from@example.com'
OpenAccount::OpenAccountConfiguration.set_config :admin_email, 'admin@example.com'
OpenAccount::OpenAccountConfiguration.set_config :app_url, 'http://localhost:3000/'
OpenAccount::OpenAccountConfiguration.set_config :app_name, 'My App'
OpenAccount::OpenAccountConfiguration.set_config :mail_charset, 'utf-8'
OpenAccount::OpenAccountConfiguration.set_config :security_token_life_days, 360
OpenAccount::OpenAccountConfiguration.set_config :two_column_input, true
OpenAccount::OpenAccountConfiguration.set_config :changeable_fields, [ 'firstname', 'lastname' ]
OpenAccount::OpenAccountConfiguration.set_config :delayed_delete, false
OpenAccount::OpenAccountConfiguration.set_config :delayed_delete_days, 7
OpenAccount::OpenAccountConfiguration.set_config :user_table, 'users'
OpenAccount::OpenAccountConfiguration.set_config :use_email_notification, false
OpenAccount::OpenAccountConfiguration.set_config :salt,'Put Salt Here'